package packet;

import java.io.Serializable;


import sql.updateOldmanLocation;
import TCP.Communication.CommunicationServer;
import TCP.Communication.LinkerClient;
import TCP.Communication.LinkerServer;
import TCP.Packet.sys.Packet_i;

public class updateLocation implements Packet_i, Serializable{
	public double Latitude, longitude;
	public int id;
		
	@Override
	public void runOnServer(LinkerServer ls) {
		CommunicationServer.cs.sendTo指定名稱(ls, this, new String[]{"sql"});
		System.out.println(Latitude+"  "+longitude);
	}

	@Override
	public void runOnClient(LinkerClient lc) {
		updateOldmanLocation a=new updateOldmanLocation();
		a.write(id,Latitude, longitude);

	}
	

}
